package com.hrh.selectsystem.mapper;

import com.hrh.selectsystem.model.dto.file.StudentExcelImport;
import com.hrh.selectsystem.model.dto.student.StudentAddRequest;
import com.hrh.selectsystem.model.entity.Student;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
* @author hetongxue
* @description 针对表【student(学生)】的数据库操作Mapper
* @createDate 2024-10-23 11:33:32
* @Entity com.hrh.selectsystem.model.entity.Student
*/
public interface StudentMapper extends BaseMapper<Student> {
    /**
     * 批量导入学生
     * @param studentExcelList
     */
    void saveStudentBatch(List<StudentExcelImport> studentExcelList);

    /**
     * 根据学生账号查询学生id
     * @param studentaccount
     * @return
     */
    Long selectIdByAccount(String studentaccount);

    /**
     * 根据学生姓名模糊查询学生id
     * @param studentname
     * @return
     */
    Long selectIdByName(String studentname);
}




